<body text=yellow bgcolor=green>
<?
include"koneksi.php";
$perintah="select*from zekama";
$hasil=mysql_query($perintah);
echo"<table border=0 cellpadding=0 
cellspacing=0 align=center>
<tr bgcolor=black>
<td align=center><b>NPM</b></td>
<td align=center><b>
Nama Mahasiswa</b></td>
<td align=center><b>Kelas</b></td>
<td align=center><b>Jurusan</b></td>
<td align=center ><b>Prodi</b></td>
<td align=center><b>Alamat</b></td>
<td align=center><b>Pesan </b></td>
<td align=center><b> action</b></td>
</tr>";
$i=0;
while($row=mysql_fetch_array($hasil))
{
$i++;
if (($i%2)==0)
$bg="blue";
else 
$bg="green";
echo"<tr bgcolor=$bg>
<td align=center>$row[NPM]</td>
<td align=center>$row[Nama_Mahasiswa]</td>	
<td align=center>$row[Kelas]</td>
<td align=center>$row[Jurusan]</td>
<td align=center>$row[Prodi]</td>
<td align=center>$row[Alamat]</td>
<td align=center>$row[Pesan]</td>
<td><a href=proses.php?modul=
zekama&act=delete&id=$row[NPM]>[delete]</a>
<a href=edit.php?modul=
zekama&act=edit&id=$row[NPM]>[edit]</a></td>
</tr>";
}
?>